package com.cdl.service.impl;  																		  

import java.util.List;																					
import org.slf4j.Logger;																				
import org.slf4j.LoggerFactory;																			
import org.springframework.beans.factory.annotation.Autowired;											
import org.springframework.stereotype.Service;															

import com.cdl.dao.SysParaMapper;																		
import com.cdl.entity.SysPara;																	
import com.cdl.service.SysParaService;																	
import com.github.pagehelper.PageInfo;																	
		
@Service("sysParaServiceImpl")																	
public class SysParaServiceImpl extends BasicServiceImpl<SysPara> implements SysParaService{	
		private static Logger logger = LoggerFactory.getLogger(SysParaServiceImpl.class);				  

		@Autowired																							
		SysParaMapper sysParaMapper ;																  

		@Override																							
		public List<SysPara> getList(SysPara sysPara) {									
			logger.info("查询用户列表");																		
			List<SysPara> u = sysParaMapper.getList(sysPara);								
			return u;																						
		}																								  

		@Override																							
		public SysPara get(SysPara sysPara) {											
			SysPara u = sysParaMapper.get(sysPara);											
			return u;																						
		}																								  

		@Override																							
		public void add(SysPara sysPara) {														
			sysParaMapper.add(sysPara);															
		}																								  

		@Override																							
		public void update(SysPara sysPara) {													
			sysParaMapper.update(sysPara);															
		}																								  

		@Override																							
		public void delete(SysPara sysPara) {													
			sysParaMapper.delete(sysPara);															
		}																								  

		@Override																							
		public PageInfo<SysPara> getPage(SysPara sysPara) {								
			return getPage(sysPara.getPageNum(),sysPara.getPageSize(),sysPara);		
		}																									
}																									  


